/* 风扇容器 */
.fan-container {
  display: flex;
  justify-content: center;
  padding: 5rem;
}

.fan-container img {
  /* 图片自适应 */
  display: block;
  width: 100%;
  height: auto;
}

/* 风扇主体 */
.fan {
  border: 5px solid #000000;
  border-radius: 50%;
}

/* 控制部分的样式 */
.controls {
  margin: 1rem 0px;
  text-align: center;
}

.controls > span {
  display: inline-block;
  width: 1.5rem;
  margin: 0.5rem 0.1rem;
  border-radius: 0.5rem;
  border: 1px solid #ff0000;
  cursor: pointer;
}

.active {
  background-color: #ff0000;
  color: #ffffff;
}

/* 动画的部分 */
@keyframes fan {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(1080deg);
  }
}
/* 三档动画样式 */
.fan01 {
  /* linear，动画匀速 */
  animation: fan 3s infinite linear;
}
.fan02 {
  animation: fan 2s infinite linear;
}
.fan03 {
  animation: fan 1s infinite linear;
}

/* 停止的动画 */
@keyframes fan-off {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.fan-off {
  animation: fan-off 1s;
}

#myaudio {
  width: 0px;
  height: 0px;
}
